package jodis.conn.inter;

import java.io.IOException;

public interface IConnection {
    public void writeWithNIO(byte[] bs) throws IOException;
    public void write(byte[] bs) throws IOException;

    // 订阅相关

    // 事务相关

    // 数据库相关，redis里，默认有 16 个数据库可用
    public int getDBIndex();
    public void selectDB(int index);

    // 主从复制相关
    // NormalCli is client with user
    // ReplicationRecvCli is fake client with replication master
    public int getRole();
    public void setRole(int role);

}
